package com.atguigu.spring5.bean;/*
@author joker
@create 2022-03-17 15:15
untitled
*/

public class Emp {
    private String ename;
    private String gender;
    private Dept dept;

    public void setDept(Dept dept) {
        this.dept = dept;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getEname() {
        return ename;
    }

    public String getGender() {
        return gender;
    }

    public Dept getDept() {
        return dept;
    }

    public void add(){
        System.out.println(ename+"::"+gender+"::"+dept.toString());
    }
}
